// 用户相关请求模块
import request from "@/utils/request.js";
// 用户登陆
export const login = data => {
  return request({
    method: "POST",
    url: "/mp/v1_0/authorizations",
    data
  })
}

//获取用户信息
export const getUserProfile = () => {
  // const user=JSON.parse(window.localStorage.getItem('user'))
  return request({
    method: "GET",
    url: "/mp/v1_0/user/profile",
    // 请求头设置
    // headers: {
    //   Authorization: `Bearer ${user.token}`  
    // }
  })
}
